//
//  AlbumDataSource.h
//  PhotoKitDemo
//
//  Created by 红沙尘 on 17/5/3.
//  Copyright © 2017年 红沙尘. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Photos/Photos.h>
@interface AlbumDataSource : NSObject

+ (AlbumDataSource *)shareAlbumDataSource:(void(^)())completion;

@property (nonatomic, strong) PHImageRequestOptions *options;
@property (nonatomic, strong) PHFetchResult<PHAsset *> *assets;//得到所有图片

- (void)saveImage:(UIImage *)image
          toAlbum:(NSString *)album
         complete:(void(^)(PHFetchResult<PHAsset *> * result, NSError *error) )complete;

@end
